package org.example.service;

import org.example.controller.request.AccountLoginRequest;
import org.example.controller.request.AccountRegisterRequest;
import org.example.util.JsonData;

/**
 * @description: 用户注册和登录相关接口
 * @author: 谢超
 * @date: 2023/07/16 20:19
 **/
public interface AccountService {
    /**
     * 用户注册
     * @param accountRegisterRequest
     * @return
     */
    JsonData register(AccountRegisterRequest accountRegisterRequest);

    /**
     * 用户登录
     * @param request
     * @return
     */
    JsonData login(AccountLoginRequest request);
}
